package com.example.demoofimagedownloadapp.contract;

import android.graphics.Bitmap;
import android.os.RemoteException;

import com.example.demoofimagedownloadapp.presenter.BasePresenter;
import com.example.demoofimagedownloadapp.view.BaseActivity;
import com.example.demoofimagedownloadapp.view.BaseView;

public abstract class MainContract {
    public interface View extends BaseView<Presenter> {
        void updateImage(Bitmap bitmap);
        void updateProgress(int progress);
    }
    public interface Presenter{
        boolean startDownload() throws RemoteException;
        boolean cancelDownload() throws RemoteException;

    }
}
